import request from '@/common/request'

//注册列表
export function getList(data) {
    return request({
        url: '/apisell/apply/registerLink/getList',
        method: 'post',
        data:data
    })
}

//获取员工列表
export function getStaffList(data) {
    return request({
        url: '/apisell/apply/registerLink/getStaffList',
        method: 'post',
        data:data
    })
}

//创建注册链接
export function createRegisterLink(data) {
    return request({
        url: '/apisell/apply/registerLink/createRegisterLink',
        method: 'post',
        data:data
    })
}

//获取可以继承的员工列表
export function getCanInheritStaffList(data) {
    return request({
        url: '/apisell/apply/registerLink/getCanInheritStaffList',
        method: 'post',
        data:data
    })
}

//继承注册链接
export function inheritRegisterLink(data) {
    return request({
        url: '/apisell/apply/registerLink/inheritRegisterLink',
        method: 'post',
        data:data
    })
}

//获取登录用户的等级
export function is_pingtai(data) {
    return request({
        url: '/apisell/apply/registerLink/is_pingtai',
        method: 'post',
        data:data
    })
}

//获取登录用户本身的信息
export function getSelfInfo(data) {
    return request({
        url: '/apisell/apply/registerLink/getSelfInfo',
        method: 'post',
        data:data
    })
}

//生成一级推广链接
export function createOneRegisterLink(data) {
    return request({
        url: '/apisell/apply/registerLink/createOneRegisterLink',
        method: 'post',
        data:data
    })
}

